<?php

namespace app\admin\model;

use think\Model;

class MailDowloadModel extends Model
{
    public function add($adminId, $mailboxName = '', $mailboxType = '', $mailboxPassword = '')
    {
        $this->data([
            'admin_id'         => $adminId,
            'mailbox'          => $mailboxName,
            'mailbox_type'     => $mailboxType,
            'mailbox_password' => $mailboxPassword
        ]);

        return $this->save();
    }
}
